package com.poetize.plus.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;

/**
 * @author zuosy
 * @created 2024/4/11 17:10
 */
public record RegisterDTO(
        @Schema(description = "用户名")
        @NotBlank(message = "不能为空")
        String username,

        @Schema(description = "密码")
        @NotBlank(message = "密码不能为空")
        String password,

        @Schema(description = "邮箱")
        @Email(message = "请输入正确邮箱")
        @NotBlank(message = "邮箱不能为空")
        String email,

        @Schema(description = "验证码")
        @NotBlank(message = "验证码不能为空")
        String code
) {


}
